#include <REGX52.H>
#include "DELAY.H"
#include "MATRIXKEY.H"
	
//unsigned char keynum;

void External_Init()
{
	IT0 = 1;
	EX0 = 1;
	EA = 1;
}	


void main()
{
	External_Init();
	while(1)
	{
	}
}

void Exter0() interrupt 0
{
	Delay(20);
	if(P3_2 == 0)
	{
		P2 = ~P2;
	}
}